CONFIG      += plugin debug_and_release
TARGET      = $$qtLibraryTarget(nwidplugin)
TEMPLATE    = lib

HEADERS     = nWidplugin.h \
    nWid.h \
    trafficlight.h
SOURCES     = nWidplugin.cpp \
    nWid.cpp
RESOURCES   = icons.qrc
LIBS        += -L. 

greaterThan(QT_MAJOR_VERSION, 4) {
    QT += designer
} else {
    CONFIG += designer
}

target.path = $$[QT_INSTALL_PLUGINS]/designer
INSTALLS    += target

include(nWid.pri)

FORMS += \
    nWid.ui

win32:CONFIG(release, debug|release): LIBS += -LD:/workProject/vehicletest/libs/ -ltrafficwidplugin
else:win32:CONFIG(debug, debug|release): LIBS += -LD:/workProject/vehicletest/libs/  -ltrafficwidplugind

#QMAKE_CFLAGS_DEBUG -= -O2
#QMAKE_CXXFLAGS_DEBUG -= -O2

#QMAKE_CFLAGS_RELEASE -= -O2
#QMAKE_CXXFLAGS_RELEASE -= -O2
